home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’97
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Miscellany
/
Swap.h
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-06-28
|
165 b
|
15 lines
|
[
TEXT/CWIE
]
// Swap.h
#ifndef Swap_h
#define Swap_h
template <class Type>
void Swap( Type& left, Type& right )
{
Type out( left );
left = right;
right = out;
}
#endif